layui.define(['jquery'], function (exports) {
    var $ = layui.jquery;
    //全局ajax,session超时,跳转登录页面
   /* var methods = {
        start: function () {*/
            $.ajaxSetup({
                complete: function (xhr, status) {
                    if (xhr.responseText == 'timeout') {
                        window.top.location = "/index";
                    }
                }
            });
        /*}
    };*/
    exports('ajaxTimeout', null);
});